package cn.edu.scau.cmi.zhangweiming.composite.consistent;

import java.util.Set;


public class Person extends Organization{
	
	public Person(String name) {
        super(name);
    }	
	public String getname() {
		return super.getname();
	}
	public Organization getParent() {
		return this.getParent();
	}
	public String info() {
		return "Person:"+super.getname();
	}
	public void addChild(Organization child) {
    	throw new IllegalArgumentException("method is deprecated");
    }
    public void deleteChild(Organization child) {
    	throw new IllegalArgumentException("method is deprecated");
    }	
}
